﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="articoliDS" targetNamespace="http://tempuri.org/articoliDS.xsd" xmlns:mstns="http://tempuri.org/articoliDS.xsd" xmlns="http://tempuri.org/articoliDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="articoliConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="articoliConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.LuDo.PitEditor.Properties.Settings.GlobalReference.Default.articoliConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ArticoliTableAdapter" GeneratorDataComponentClassName="ArticoliTableAdapter" Name="Articoli" UserDataComponentName="ArticoliTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="articoliConnectionString (Settings)" DbObjectName="Articoli" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Articoli] WHERE (([ID] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Articoli] ([Titolo], [Testo], [DataCreazione], [DataUpload], [Fonti], [Tag], [Prenotato]) VALUES (@p1, @p2, @p3, @p4, @p5, @p6, @p7)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Titolo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Testo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataUpload" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fonti" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Prenotato" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, Titolo, Testo, DataCreazione, DataUpload, Fonti, Tag,Prenotato
FROM            Articoli
ORDER BY DataUpload, DataCreazione</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Articoli] SET [Titolo] = @p1, [Testo] = @p2, [DataCreazione] = @p3, [DataUpload] = @p4, [Fonti] = @p5, [Tag] = @p6, [Prenotato] = @p7 WHERE (([ID] = @p8))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Titolo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Testo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataUpload" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fonti" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@p7" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Prenotato" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p8" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="Titolo" DataSetColumn="Titolo" />
              <Mapping SourceColumn="Testo" DataSetColumn="Testo" />
              <Mapping SourceColumn="DataCreazione" DataSetColumn="DataCreazione" />
              <Mapping SourceColumn="DataUpload" DataSetColumn="DataUpload" />
              <Mapping SourceColumn="Fonti" DataSetColumn="Fonti" />
              <Mapping SourceColumn="Tag" DataSetColumn="Tag" />
              <Mapping SourceColumn="Prenotato" DataSetColumn="Prenotato" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="articoliConnectionString (Settings)" DbObjectName="Articoli" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPeriod" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPeriod" GeneratorSourceName="FillByPeriod" GetMethodModifier="Public" GetMethodName="GetDataByPeriod" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPeriod" UserSourceName="FillByPeriod">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DataCreazione, DataUpload, Fonti, ID, Prenotato, Tag, Testo, Titolo FROM Articoli WHERE (DataUpload &gt;= @DATAINIZIO) AND (DataUpload &lt;= @DATAFINE) ORDER BY DataUpload, DataCreazione</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="DATAINIZIO" ColumnName="DataUpload" DataSourceName="Articoli" DataTypeServer="datetime(8)" DbType="DateTime" Direction="Input" ParameterName="@DATAINIZIO" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="DataUpload" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DATAFINE" ColumnName="DataUpload" DataSourceName="Articoli" DataTypeServer="datetime(8)" DbType="DateTime" Direction="Input" ParameterName="@DATAFINE" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="DataUpload" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="articoliDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="articoliDS" msprop:Generator_DataSetName="articoliDS" msprop:EnableTableAdapterManager="True">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Articoli" msprop:Generator_UserTableName="Articoli" msprop:Generator_RowDeletedName="ArticoliRowDeleted" msprop:Generator_RowChangedName="ArticoliRowChanged" msprop:Generator_RowClassName="ArticoliRow" msprop:Generator_RowChangingName="ArticoliRowChanging" msprop:Generator_RowEvArgName="ArticoliRowChangeEvent" msprop:Generator_RowEvHandlerName="ArticoliRowChangeEventHandler" msprop:Generator_TableClassName="ArticoliDataTable" msprop:Generator_TableVarName="tableArticoli" msprop:Generator_RowDeletingName="ArticoliRowDeleting" msprop:Generator_TablePropName="Articoli">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
              <xs:element name="Titolo" msprop:Generator_UserColumnName="Titolo" msprop:Generator_ColumnPropNameInRow="Titolo" msprop:Generator_ColumnVarNameInTable="columnTitolo" msprop:Generator_ColumnPropNameInTable="TitoloColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Testo" msprop:Generator_UserColumnName="Testo" msprop:Generator_ColumnPropNameInRow="Testo" msprop:Generator_ColumnVarNameInTable="columnTesto" msprop:Generator_ColumnPropNameInTable="TestoColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870911" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DataCreazione" msprop:Generator_UserColumnName="DataCreazione" msprop:Generator_ColumnPropNameInRow="DataCreazione" msprop:Generator_ColumnVarNameInTable="columnDataCreazione" msprop:Generator_ColumnPropNameInTable="DataCreazioneColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DataUpload" msprop:Generator_UserColumnName="DataUpload" msprop:Generator_ColumnPropNameInRow="DataUpload" msprop:Generator_ColumnVarNameInTable="columnDataUpload" msprop:Generator_ColumnPropNameInTable="DataUploadColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Fonti" msprop:Generator_UserColumnName="Fonti" msprop:Generator_ColumnPropNameInRow="Fonti" msprop:Generator_ColumnVarNameInTable="columnFonti" msprop:Generator_ColumnPropNameInTable="FontiColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Tag" msprop:Generator_UserColumnName="Tag" msprop:Generator_ColumnPropNameInRow="Tag" msprop:Generator_ColumnVarNameInTable="columnTag" msprop:Generator_ColumnPropNameInTable="TagColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Prenotato" msprop:Generator_UserColumnName="Prenotato" msprop:Generator_ColumnPropNameInRow="Prenotato" msprop:Generator_ColumnVarNameInTable="columnPrenotato" msprop:Generator_ColumnPropNameInTable="PrenotatoColumn" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Articoli" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>